package com.mdd.product.validate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@ApiModel("商品sku搜素参数")
public class ProductSkuSearchValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "spu编号")
    private Long spuId;

    @ApiModelProperty(value = "属性数组，JSON 格式 [{propertId: , valueId: }, {propertId: , valueId: }]")
    private String properties;

    @ApiModelProperty(value = "商品价格，单位：元")
    private BigDecimal price;

    @ApiModelProperty(value = "市场价，单位：元")
    private BigDecimal marketPrice;

    @ApiModelProperty(value = "成本价，单位： 元")
    private BigDecimal costPrice;

    @ApiModelProperty(value = "SKU 的条形码")
    private String barCode;

    @ApiModelProperty(value = "图片地址")
    private String picUrl;

    @ApiModelProperty(value = "库存")
    private Long stock;

    @ApiModelProperty(value = "商品重量，单位：kg 千克")
    private Long weight;

    @ApiModelProperty(value = "商品体积，单位：m^3 平米")
    private Long volume;

    @ApiModelProperty(value = "一级分销的佣金，单位：元")
    private BigDecimal firstBrokeragePrice;

    @ApiModelProperty(value = "二级分销的佣金，单位：元")
    private BigDecimal secondBrokeragePrice;

    @ApiModelProperty(value = "商品销量")
    private Integer salesCount;
}
